package xian.woniuxy.hisbe.config;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import xian.woniuxy.hisbe.entity.ResultVO;

/**
 * @author zhang
 * @time 2022/01/02 10:48:00
 */
@ControllerAdvice
public class MyExceptionHandler {
    @ExceptionHandler(Exception.class)
    public ResultVO handle(Exception e){
        return ResultVO.failure(e);

    }
}
